<?php
global $_RQ,$_AR;
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($plugin_name){
	$return['footernav']=$this->plugin($plugin_name)->plugin_setting('setting')['footernav'];
}
if($_RQ['is_access'] && ($_RQ['onemerchid'] || $_RQ['merchid'])){
	if($_RQ['onemerchid'] || $_RQ['merchid']){
		$_SESSION['onemerchid']=$_RQ['onemerchid']?:$_RQ['merchid'];
	}
	$this->setting=$this->plugin_setting('setting'.$_SESSION['onemerchid']);
}
$return['pluginset']=$this->setting;
$return['sharedata']=array(
			'title'=>$this->setting['teamshare_title']?$this->setting['teamshare_title']:'快来加入我的团队吧！',
			'desc'=>$this->setting['teamshare_desc']?:'加入我的团，第一时机了解活动，优惠多多，活动多多！',
			'link'=>custom_url('jy_mteamfee/myhome/main/fromuser='.$_SESSION['uid'].'&onemerchid='.$_SESSION['onemerchid'],true),
			'imgUrl'=>tomedia($this->setting['teamshare_img']),
);
?>